﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sio.Mdm.Entities;

namespace IDM.Types
{
    [Entity(
           "IDM.BF.AdministrationService.ITokensService, IDM.BF.IAdministrationService",
           TableName = "Tokens"
    )]
    public interface Token : IEntity
    {
        [PrimaryKey(IsIdentity=true)]
        int ID { get; set; }
        
        [Field]
        string Name { get; set; }
        
        [Field(SelectMethod = "SelectParent")]
        Token Parent { get; set; }
    }
}
